# Makefile for Evolutionary Computation GBP project
# T.S.Yo 2006.01.01

# # Variables
JC = javac
JFLAGS = -g 
#-Xlint:unchecked
SOURCE_PATH = ./GBP
CLASS_FILES = $(SOURCE_PATH)/ReadIni.class \
              $(SOURCE_PATH)/GraphDef.class \
              $(SOURCE_PATH)/GraphNode.class \
              $(SOURCE_PATH)/Individual.class \
              $(SOURCE_PATH)/Evolution.class \
              $(SOURCE_PATH)/KLFM.class \
              $(SOURCE_PATH)/RunGBP.class
TEST_TARGET = $(SOURCE_PATH)/RunEXP
JAR_CMD = jar cvf 
JAR_NAME = $(SOURCE_PATH)/GBP.jar

## Building targets
Default: $(CLASS_FILES) $(TEST_TARGET).class
#	$(JAR_CMD) $(JAR_NAME) $(CLASS_FILES)

$(TEST_TARGET).class: $(CLASS_FILES) $(TEST_TARGET).java
	$(JC) $(JFLAGS) $(TEST_TARGET).java
    
$(SOURCE_PATH)/ReadIni.class: $(SOURCE_PATH)/ReadIni.java
	$(JC) $(JFLAGS) $(SOURCE_PATH)/ReadIni.java

$(SOURCE_PATH)/GraphDef.class: $(SOURCE_PATH)/GraphDef.java
	$(JC) $(JFLAGS) $(SOURCE_PATH)/GraphDef.java

$(SOURCE_PATH)/GraphNode.class: $(SOURCE_PATH)/GraphNode.java
	$(JC) $(JFLAGS) $(SOURCE_PATH)/GraphNode.java

$(SOURCE_PATH)/Individual.class: $(SOURCE_PATH)/Individual.java
	$(JC) $(JFLAGS) $(SOURCE_PATH)/Individual.java
    
$(SOURCE_PATH)/Evolution.class: $(SOURCE_PATH)/Evolution.java
	$(JC) $(JFLAGS) $(SOURCE_PATH)/Evolution.java

$(SOURCE_PATH)/KLFM.class: $(SOURCE_PATH)/KLFM.java
	$(JC) $(JFLAGS) $(SOURCE_PATH)/KLFM.java

$(SOURCE_PATH)/RunGBP.class: $(SOURCE_PATH)/RunGBP.java
	$(JC) $(JFLAGS) $(SOURCE_PATH)/RunGBP.java

clean:
	rm $(SOURCE_PATH)/*.class


